package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsEquipmentpresetsMapper;
import com.ruoyi.system.domain.BsEquipmentpresets;
import com.ruoyi.system.service.IBsEquipmentpresetsService;

/**
 * 装备预设Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-16
 */
@Service
public class BsEquipmentpresetsServiceImpl implements IBsEquipmentpresetsService 
{
    @Autowired
    private BsEquipmentpresetsMapper bsEquipmentpresetsMapper;

    /**
     * 查询装备预设
     * 
     * @param id 装备预设主键
     * @return 装备预设
     */
    @Override
    public BsEquipmentpresets selectBsEquipmentpresetsById(Long id)
    {
        return bsEquipmentpresetsMapper.selectBsEquipmentpresetsById(id);
    }

    /**
     * 查询装备预设列表
     * 
     * @param bsEquipmentpresets 装备预设
     * @return 装备预设
     */
    @Override
    public List<BsEquipmentpresets> selectBsEquipmentpresetsList(BsEquipmentpresets bsEquipmentpresets)
    {
        return bsEquipmentpresetsMapper.selectBsEquipmentpresetsList(bsEquipmentpresets);
    }

    /**
     * 新增装备预设
     * 
     * @param bsEquipmentpresets 装备预设
     * @return 结果
     */
    @Override
    public int insertBsEquipmentpresets(BsEquipmentpresets bsEquipmentpresets)
    {
        return bsEquipmentpresetsMapper.insertBsEquipmentpresets(bsEquipmentpresets);
    }

    /**
     * 修改装备预设
     * 
     * @param bsEquipmentpresets 装备预设
     * @return 结果
     */
    @Override
    public int updateBsEquipmentpresets(BsEquipmentpresets bsEquipmentpresets)
    {
        return bsEquipmentpresetsMapper.updateBsEquipmentpresets(bsEquipmentpresets);
    }

    /**
     * 批量删除装备预设
     * 
     * @param ids 需要删除的装备预设主键
     * @return 结果
     */
    @Override
    public int deleteBsEquipmentpresetsByIds(Long[] ids)
    {
        return bsEquipmentpresetsMapper.deleteBsEquipmentpresetsByIds(ids);
    }

    /**
     * 删除装备预设信息
     * 
     * @param id 装备预设主键
     * @return 结果
     */
    @Override
    public int deleteBsEquipmentpresetsById(Long id)
    {
        return bsEquipmentpresetsMapper.deleteBsEquipmentpresetsById(id);
    }
}
